EJB-EJB MCQ /EJB MCQ QUESTIONS AND ANSWER Sample Test,Sample questions

Question:
 How many types of collection configuration element does Spring offers?

1.3

2.4

3.5

4.2


Question:
 How many types of transaction management does spring support?

1.3

2.4

3.5

4.2


Question:
 Spring framework was released in ____.

1.2001

2.2002

3.2003

4.2005


Question:
 The scope is always ____ by default?

1.Singleton

2.Prototype

3.Session

4.Global-session


Question:
 Which of the following scope allows a single bean specification to have an unlimited number of object instances?

1.Singleton

2.prototype

3.Session

4.Global-session


Question:
How many autowiring modes are there in Spring?

1.4

2.5

3.2

4.3


Question:
How many different ways may Spring-based apps be configured?

1.Java-based configuration

2.XML-based configuration

3.Annotation-based configuration

4.All of the above


Question:
How many types of IOC containers are there?

1.5

2.4

3.3

4.2


Question:
In how many ways you can inject dependency?

1.4

2.2

3.5

4.7


Question:
Spring framework's ____ capability allows you to insert object dependencies indirectly.

1.Autowiring

2.Autoreferences

3.Applicationbean

4.AutoBeans


Question:
The key unit of modularity in AOP is the ____?

1.Module

2.Class

3.Aspect

4.Objects


Question:
The key unit of modularity in OOP is the ____?

1.Module

2.Class

3.Aspect

4.Objects


Question:
What are the responsibilities of JdbcTemplate class?

1.Takes care of resource generation

2.We can carry out all database operations.

3.Handles the exception and displays useful error messages

4.All of the above


Question:
What is AOP?

1.Aspect object programming

2.Aspect-oriented programming

3.Artificial-oriented programming

4.Artificial object programming


Question:
What is IOC?

1.Integral of conversion

2.Integrated oriented control

3.Inversion of conversion

4.Inversion of control


Question:
When using ____ autowiring mode, the bean id and reference name must be identical.

1.Byname

2.ByType

3.No

4.Constructor


Question:
Which annotation designates a class as the controller?

1.@cont

2.@controller

3.@_controller

4.@__controller


Question:
Which of the following annotation is used to associate a URL with a whole class or a specific handler function?

1.RequestMapping

2.RequestMap

3.RequestMapper

4.Mapper


Question:
Which of the following clearly states the role of IOC in Spring?

1.To instantiate the application class

2.To setup the object

3.To assemble the object dependencies

4.All of the above


Question:
Which of the following does the J2EE platform consist of?

1.Services

2.APIs

3.Protocols

4.All of the listed options


Question:
Which of the following helps us to fetch the record from the database?

1.ResultSetExtractor

2.RowMapper

3.Both

4.None


Question:
Which of the following is the default autowiring mode?

1.Byname

2.ByType

3.No

4.Constructor


Question:
Which of the following is useful for wiring, such as injecting a list of variables and allowing for duplication?

1.LIST

2.MAP

3.SET

4.PROPS


Question:
Which of the following scope, restricts the bean specification to a single instance per Spring IoC container?

1.Singleton

2.Prototype

3.Session

4.Global-session


Question:
Which of the following type of advice executes after a joint point has been completed properly?

1.Before advice

2.After Returning Advice

3.After Throwing Advice

4.Around Advice


Question:
Which of the following type of advice executes before and after a joint point?

1.Before advice

2.After Returning Advice

3.After Throwing Advice

4.Around Advice


Question:
Which of the following type of advice executes if the method exits by throwing an exception?

1.Before advice

2.After Returning Advice

3.After Throwing Advice

4.Around Advice


Question:
With Spring Web MVC, which class serves as the front controller?

1.DispatcherServlet

2.Servlet

3.ServletContext

4.HandlerApapter


Question:
_ beans are defined inside the scope of another bean.

1.Core

2.Outer

3.Peripheral

4.Inner


Question:
__ are the objects that constitute the backbone of your application and are maintained by the Spring IoC container?

1.Threads

2.Process

3.Beans

4.Application


Question:
__ can be employed to inject a collection of name-value pairs with any type of name and value?

1.LIST

2.MAP

3.SET

4.PROPS


Question:
__ denotes an action taken by an aspect at a specific join point.

1.Interceptor

2.Pointcut

3.Advice

4.Target Object


Question:
__ is a class that accepts incoming requests and routes them to the appropriate resources such as controllers, models, and views.

1.DispatcherServlet

2.Servlet

3.ServletContext

4.HandlerApapter


Question:
___ aids in wiring a group of values that are not duplicated?

1.<LIST>

2.MAP

3.SET

4.PROPS


Question:
___ is used to increase modularity by cross-cutting concerns.

1.JVM

2.Jdbctemplate class

3.OOP

4.AOP


More MCQS

  1. EJB Core Java Mcq Questions
  2. EJB MCQ - Java Technologies
  3. EJB MCQ QUESTIONS AND ANSWER
  4. Advanced EJB MCQ QUESTION AND ANSWER
  5. EJB MCQ QUESTIONS AND ANSWER
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!